<template>
  <div class="school">
    <h2>我是School组件</h2>
    <h3>学校为:{{school}}----地址为:{{address}}</h3>
    <h4>接收到Count组件传递过来的参数:和为:{{sum}}------扩大100倍的值为:{{bigSum}}</h4>
  </div>

</template>

<script>
import {mapGetters, mapState} from "vuex";

export default {
  name: "School",
  computed:{
    ...mapState(['school','address','sum']),
    ...mapGetters(['bigSum'])
  }
}
</script>

<style scoped>
.school{
  background: hotpink;
  padding: 10px;
}
</style>